# from util.sql_pyodbc import SQLServer_pyodbc
from api import sqlpyodbc


# 添加角色
def Add_menu(data):
    sql = f'''
        insert into acl(parent_id,acl_name,acl_type,title) values('{data.parent_id}','{data.acl_name}',{data.acl_type},'{data.title}');
    '''
    try:
        return sqlpyodbc.execute(sql)
    except:
        return None
